/*
 * @Author: shawnxiao
 * @Date: 2021-02-01 11:53:35
 * @LastEditTime: 2021-09-25 23:26:25
 * @FilePath: /project/mock/controller/home.js
 */
import mockjs from 'mockjs'

module.exports = [
  {
    url: '/mock/schema/find/citys', // 查询内容管理数据
    type: 'post',
    response: mockjs.mock({
      code: 200,
      message: 'Success(处理成功)',
      status: true,
      'data|5': [
        {
          'id|+1': 1,
          'value|1-100': 50,
          label: '@city',
          address: '@county(true)', // 省市区地址
          'type|0-2': 1
        }
      ]
    })
  },
  {
    url: '/mock/schema/find/ranks', // 查询内容管理数据
    type: 'post',
    response: mockjs.mock({
      code: 200,
      message: 'Success(处理成功)',
      status: true,
      'data|5': [
        {
          id: '@id',
          'value|1-100': 50,
          label: '@ctitle(8,12)'
          // pic: "@dataImage('200x100')",
          // description: '@cparagraph(1,3)',
          // date: '@date',
          // time: '@time',
          // datetime: '@datetime',
          // name: '@cname',
        }
      ]
    })
  },
  {
    url: '/mock/find/slotType', // 查询内容管理数据
    type: 'post',
    response: mockjs.mock({
      code: 200,
      message: 'Success(处理成功)',
      status: true,
      'data|5': [
        {
          id: '@id',
          'value|1-100': 50,
          label: '@ctitle(8,12)',
          datetime: '@datetime',
          'price|600-2000.2-5': 1 // 600-2000随机数 小数点2-5位
        }
      ]
    })
  },
  {
    url: '/mock/find/externalType', // 查询内容管理数据
    type: 'post',
    response: mockjs.mock({
      code: 200,
      message: 'Success(处理成功)',
      status: true,
      'data|5': [
        {
          id: '@id',
          'value|1-100': 70,
          label: '@ctitle(8,12)',
          datetime: '@datetime'
        }
      ]
    })
  }
]
